package com.zhoust;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;


/**
 * @author 15703
 * @version 1.0
 * @Title
 * @package com.zhoust
 * @date 2020/9/16 22:34
 * @desc
 */
@SpringBootApplication
@MapperScan(basePackages = "com.zhoust.mapper")
// 扫描所有包以及相关组件包
@ComponentScan(basePackages = {"com.zhoust", "org.n3r.idworker"})
//开启定时任务
@EnableScheduling
public class SpringBootStart {

    public static void main(String[] args) {

        SpringApplication.run(SpringBootStart.class,args);

    }

}
